package com.blue.bluecode;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;

import com.blue.bluecode.adapter.AsyncLoaderAdapter;
import com.blue.bluecode.entity.Image;

import java.util.Arrays;
import java.util.List;


public class AsyncLoaderActivity extends Activity {

    private ListView lvImage = null;
    private List<String> mData;
//    private Handler mHandler;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_async_loader);
        getActionBar().setDisplayHomeAsUpEnabled(true);
        lvImage = (ListView) findViewById(R.id.lvImage);
        mData = Arrays.asList(Image.IMAGE_URLS);
        AsyncLoaderAdapter adapter = new AsyncLoaderAdapter(AsyncLoaderActivity.this, mData, lvImage);
        lvImage.setAdapter(adapter);
    }

}
